.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 24px;
  animation: fadeIn 0.3s ease-out;

  .file-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(67, 160, 71, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    
    &::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
      opacity: 0;
      transition: opacity 0.4s ease;
      z-index: 0;
    }
    
    &:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(0, 200, 83, 0.12);
      border-color: rgba(67, 160, 71, 0.2);

      &::before {
        opacity: 0.03;
      }

      .card-preview {
        transform: scale(1.05);
        
        .el-icon {
          transform: rotate(5deg) scale(1.1);
          color: var(--primary);
        }

        &::after {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .card-actions {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .card-preview {
      height: 140px;
      background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.4s ease;
      position: relative;
      overflow: hidden;

      &::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(45deg,
          transparent 0%,
          rgba(255, 255, 255, 0.4) 50%,
          transparent 100%);
        background-size: 200% 200%;
        animation: shimmer 3s infinite linear;
      }

      &::after {
        content: '点击打开';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px;
        background: rgba(67, 160, 71, 0.9);
        color: white;
        font-size: 14px;
        text-align: center;
        opacity: 0;
        transform: translateY(100%);
        transition: all 0.3s ease;
      }

      .el-icon {
        font-size: 44px;
        color: var(--primary-dark);
        transition: all 0.4s ease;
        filter: drop-shadow(0 4px 6px rgba(0, 200, 83, 0.2));
        z-index: 1;
      }
    }

    .card-content {
      padding: 20px;
      position: relative;
      z-index: 1;

      .card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 16px;
        gap: 12px;

        .card-title {
          font-size: 15px;
          font-weight: 600;
          color: #1a1a1a;
          margin: 0;
          flex: 1;
          line-height: 1.4;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          overflow: hidden;
        }

        .el-tag {
          padding: 4px 12px;
          border-radius: 20px;
          font-weight: 500;
          font-size: 12px;
          letter-spacing: 0.5px;
          border: none;
          background: rgba(67, 160, 71, 0.1);
          color: var(--primary);
        }
      }

      .card-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .modified-time {
          font-size: 13px;
          color: #666666;
          display: flex;
          align-items: center;
          gap: 6px;

          .el-icon {
            font-size: 14px;
            color: #999999;
          }
        }

        .collaborators {
          display: flex;
          align-items: center;

          .el-avatar {
            width: 28px;
            height: 28px;
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            margin-left: -8px;

            &:first-child {
              margin-left: 0;
            }

            &:hover {
              transform: translateY(-4px) scale(1.1);
              box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
              z-index: 2;
            }
          }

          .more-users {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #f5f7fa;
            border: 2px solid white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #666666;
            margin-left: -8px;
            transition: all 0.3s ease;

            &:hover {
              transform: translateY(-2px);
              background: #e8f5e9;
              color: var(--primary);
            }
          }
        }
      }
    }

    .card-actions {
      padding: 12px;
      background: rgba(248, 250, 252, 0.95);
      border-top: 1px solid rgba(67, 160, 71, 0.1);
      display: flex;
      justify-content: flex-end;
      gap: 8px;

      .el-button {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        padding: 0;
        border: none;
        background: transparent;
        color: #666666;
        transition: all 0.3s ease;

        &:hover {
          background: var(--primary);
          color: white;
          transform: translateY(-2px);
          box-shadow: 0 4px 12px rgba(67, 160, 71, 0.2);

          .el-icon {
            transform: scale(1.1);
          }
        }

        .el-icon {
          font-size: 16px;
          transition: all 0.3s ease;
        }
      }
    }
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 